home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / GX Libraries / OffscreenLibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-31  |  1.8 KB  |  59 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.     File:        OffscreenLibrary.h
  4.     
  5.     Contains:    offscreen support library interfaces
  6.     
  7.     Written By:    Cary Clark, Michael Fairman, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink
  8.     
  9.     Copyright:    ©1992-1995 by Apple Computer, Inc.  All rights reserved.
  10.     
  11.     Change History (most recent first):
  12.     
  13.          <2>      1/9/95    JD        changed 'boolean' to 'Boolean'
  14.          <1>      1/9/95    JD        First checked in.
  15.  
  16. */
  17.  
  18. #ifndef __OFFSCREENLIBRARY__
  19. #define __OFFSCREENLIBRARY__
  20.  
  21. #include <GXTypes.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. /* for compatibility with old headers */
  28. #define offscreenLibraryIncludes
  29.  
  30.  
  31. struct offscreen {
  32.     gxShape        draw;    /* a gxBitmap gxShape which, when drawn, will transfer the offscreen to the display */
  33.     gxTransform    xform;    /* a gxTransform that will cause shapes owning it to draw offscreen. */
  34.     gxViewDevice    device;    /* the offscreen gxViewDevice whose gxColorSpace, etc. you may change */
  35.     gxViewPort    port;        /* the offscreen gxViewPort which may be placed in any gxTransform's gxViewPort list */
  36.     gxViewGroup    group;    /* the global space in which the gxViewPort and gxViewDevice exist */
  37. };
  38. typedef struct offscreen offscreen;
  39.  
  40. typedef struct viewPortBufferRecord **viewPortBuffer;
  41.  
  42. /* (see the .c file for routine explanations) */
  43. void CreateOffscreen(offscreen *target, gxShape bitmapShape);
  44. void DisposeOffscreen(offscreen *target);
  45. void CopyToBitmaps(gxShape target, gxShape source);
  46.  
  47. viewPortBuffer NewViewPortBuffer(gxViewPort originalPort);
  48. void DisposeViewPortBuffer(viewPortBuffer target);
  49. Boolean ValidViewPortBuffer(viewPortBuffer target);
  50. Boolean UpdateViewPortBuffer(viewPortBuffer target);
  51. gxViewPort GetViewPortBufferViewPort(viewPortBuffer source);
  52. gxShape GetViewPortBufferShape(viewPortBuffer source);
  53.  
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57.  
  58. #endif /* __OFFSCREENLIBRARY__ */
  59.